/****************************************************************************
   Copyright 2013 Stacy Doss

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
****************************************************************************/

#ifndef _DEFPIN_H
#define _DEFPIN_H

#include <vector>
#include <string>
#include "Rect.h"
#include "Enums.h"

namespace def {

	class Pin {
		private:
		std::string 			_name;
		std::string 			_net;
		util::DIRECTION_TYPE	_direction;
		util::USE_TYPE			_use;
		std::string 			_layerName;
		util::Rect*				_layerRect;
		util::PLACEMENT_TYPE 	_placement;
		util::Point*			_origin;
		std::string				_orient;

		public:
			Pin();
			Pin(std::string name);
			Pin(std::string name, std::string net);
			~Pin();

			std::string getName();
			std::string getNet();

			void setName(std::string);
			void setNet(std::string);
			void setDirection(util::DIRECTION_TYPE);
			void setUse(util::USE_TYPE);
			void setLayer(std::string, util::Point* origin, util::Point* extent);
			void setPlacement(util::PLACEMENT_TYPE);
			void setOrigin(util::Point*);
			void setOrient(std::string);

	};
}

#endif
